package com.zhkj.txg.module.mine.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zhkj.txg.R
import com.zhkj.txg.module.mine.entity.WithdrawEntity

class WithdrawListAdapter : BaseQuickAdapter<WithdrawEntity, BaseViewHolder>(R.layout.item_withdraw_list),
    LoadMoreModule {

    override fun convert(helper: BaseViewHolder, item: WithdrawEntity) {
        helper.setText(R.id.tvWithdrawSource, item.type)
            .setText(R.id.tvWithdrawAmount, "${item.money}元")
            .setText(R.id.tvWithdrawDate, item.createTime)
            .setText(R.id.tvWithdrawStatus, item.statusText)
    }
}